Skip to content

Conversation

@minggangw
Copy link
Member

@minggangw minggangw commented Jul 3, 2025

This PR adds full support for ROS2 .idl files by extending parsing, generation, testing, and documentation to include IDL-based interfaces.

  • Extend packages.js and directory walkers to detect and store .idl files.
  • Integrate a Python-based IDL-to-ROS converter and wire it into index.js under a new --idl flag.
  • Update tests, npm scripts, CI workflows, versioning, and README to cover IDL support.
  • Pump rosidl-generator to 1.0.0.

Meanwhile, this patch pumps Windows action image to windows-2025 because the previous one has been deprecated.

Fix: #764

@minggangw minggangw requested a review from Copilot July 3, 2025 05:02

This comment was marked as outdated.

@minggangw minggangw requested a review from Copilot July 3, 2025 07:22

This comment was marked as outdated.

@coveralls
Copy link

coveralls commented Jul 3, 2025

Coverage Status

coverage: 84.526%. remained the same
when pulling c27b42e on minggangw:fix-764
into 82bbc82 on RobotWebTools:develop.

@minggangw minggangw requested a review from Copilot July 4, 2025 03:05

This comment was marked as outdated.

@minggangw minggangw requested a review from Copilot July 4, 2025 06:14
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds full support for ROS2 .idl files by extending parsing, generation, testing, and documentation to include IDL-based interfaces.

  • Extend packages.js and directory walkers to detect and store .idl files.
  • Integrate a Python-based IDL-to-ROS converter and wire it into index.js under a new --idl flag.
  • Update tests, npm scripts, CI workflows, versioning, and README to cover IDL support.

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/test-message-type.js Clean up by destroying the subscription after message
test/test-message-generation-bin.js Add --idl flag detection for binary-script tests
rosidl_gen/packages.js Introduce idls bucket and branch logic for .idl
rosidl_gen/index.js Add --idl flag, directory setup, and conversion logic
rosidl_gen/generator.json Bump version to 1.0.0 and include .idl in description
package.json Add generate-messages-idl and test-idl scripts
README.md Document IDL-based message generation
.github/workflows/windows-build-and-test.yml Update Windows runner version
.github/workflows/windows-build-and-test-compatibility.yml Update Windows runner version
.github/workflows/linux-x64-build-and-test.yml Add IDL test step for ROS rolling
Comments suppressed due to low confidence (3)

.github/workflows/windows-build-and-test.yml:20

  • The runner label 'windows-2025' is not a supported GitHub Actions image and will cause CI failures; consider using a valid label such as 'windows-2022'.
    runs-on: windows-2025

.github/workflows/windows-build-and-test-compatibility.yml:9

  • The runner label 'windows-2025' is invalid; update to a supported runner like 'windows-2022' to avoid CI errors.
    runs-on: windows-2025

README.md:35

  • The link anchor '#ros2-interface-message-generation-important' doesn’t match any heading (likely should be '#ros2-interface-message-generation'); update to the correct anchor to prevent a broken TOC link.
- [ROS2 Interface Message Generation](#ros2-interface-message-generation-important)

@minggangw minggangw merged commit 9bbf409 into RobotWebTools:develop Jul 4, 2025
19 checks passed
minggangw added a commit that referenced this pull request Jul 7, 2025
This PR adds full support for ROS2 `.idl` files by extending parsing, generation, testing, and documentation to include IDL-based interfaces.

- Extend `packages.js` and directory walkers to detect and store `.idl` files.
- Integrate a Python-based IDL-to-ROS converter and wire it into `index.js` under a new `--idl` flag.
- Update tests, npm scripts, CI workflows, versioning, and README to cover IDL support.
- Pump `rosidl-generator` to `1.0.0`.

Meanwhile, this patch pumps Windows action image to `windows-2025` because the previous one has been deprecated.

Fix: #764
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use .idl files with rosidl_gen

2 participants